package com.pq.pqjojbackendjudgeservice;

import com.github.xiaoymin.knife4j.spring.annotations.EnableKnife4j;
import com.pq.pqjojbackendjudgeservice.rabbitmq.InitRabbitMq;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@EnableScheduling
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
@ComponentScan("com.pq")
@EnableDiscoveryClient
@EnableKnife4j
@EnableFeignClients(basePackages = {"com.pq.pqjojbackendserviceclient.service"})
public class PqjojBackendJudgeServiceApplication {

	public static void main(String[] args) {
		//	初始化消息队列，先注释掉，改用Bean的方式初始化消息队列（InitRabbitMqBean.java）
//		InitRabbitMq.doInit();
		SpringApplication.run(PqjojBackendJudgeServiceApplication.class, args);
	}

}
